package com.letoken.platform.repo.ecommerce.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.letoken.platform.pub.req.QueryReqBase;
import com.letoken.platform.repo.ecommerce.po.EcommerceProduct;
import com.letoken.platform.repo.ecommerce.po.EcommerceProductDetail;
import com.letoken.platform.repo.ecommerce.po.EcommerceProductSku;
import com.letoken.platform.repo.ecommerce.po.EcommerceUserOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(value = "新商家新增商品请求对象", description = "新商家新增商品请求对象")
public class ShopProductAddReq implements Serializable {

    @ApiModelProperty(value = "商品标题")
    @NotNull(message = "80500012")
    private String title;

    @ApiModelProperty(value = "副标题")
    @NotNull(message = "80500013")
    private String assistantTitle;


    @ApiModelProperty(value = "产品类别(二级分类ID)")
    @NotNull(message = "80500014")
    private Integer categoryId;

    @ApiModelProperty(value = "商品标签 逗号分割")
    private String tags;

    @ApiModelProperty(value = "上架状态：0->上架；1->下架")
    private Integer publishStatus;


    @ApiModelProperty(value = "主图图片，限制6张，已逗号分隔")
    @NotNull(message = "80500015")
    private String albumPics;


//    @ApiModelProperty(value = "是否免运费 1是 2否")
//    @NotNull(message = "80500016")
//    private Integer freeShipping;


    @ApiModelProperty(value = "模板ID")
    private Integer templateId;

//
//    @ApiModelProperty(value = "运费")
//    private BigDecimal shipping;

    @ApiModelProperty(value = "图文详情描述")
    @NotNull(message = "80500017")
    private String graphicDetails;


    @NotNull(message = "80500018")
    @ApiModelProperty(value = "sku组合记录")
    private List<ShopAddSkuReq> skus;

    @ApiModelProperty(value = "让利值")
    private BigDecimal contributing;



}
